/*
 * @Description: 
 * @Author: mmzhang
 * @Date: 2022-12-22 10:21:00
 * @LastEditTime: 2023-01-10 16:19:10
 */
import dateOpt from '@/biz/option/date.js'
import table from '@/components/dt/table/render.js'

function column(_this) {
  return [

    {
      field: '',
      title: '序号',
      minWidth: 100,
      type:'index'
    },
    {
      field: 'typeName',
      title: '流程类型',
      minWidth: 150,
    },
    {
      field: 'count',
      title: '待审批数',
      minWidth: 120,
    },
    {
      field: 'handles',
      title: '操作',
      minWidth: 150,
      slots: {
        default: (params, h) => {
          let btns = []

          btns.push({
            title:  _this.isOtherProcess?'查看':'去审核',
            event: 'linkProcessFun',
            data: params.row
          })

          return table.cell.btns(_this, h, btns)
        }
      }
    }
  ]
}

export default {
  column
}